'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;

    // router.get('/hyc/transmissionData', controller.transmission.getTDate)

    router.get('/hyc/getTest', controller.transmission.getTest)

    router.get('/dfs/listBuckets', controller.dfs.listBuckets)


    router.get('/dfs/bucketExists', controller.dfs.bucketExists)


    router.post('/dfs/putObject', controller.dfs.putObject)

    router.get('/dfs/fPutObject', controller.dfs.fPutObject)

    router.get('/preview/:bucket/:path*', controller.dfs.getObject)
    
    // router.get('/dfs/copyObject', controller.dfs.copyObject)//错误

    router.get('/dfs/removeObject', controller.dfs.removeObject)


    router.get('/dfs/listObjects', controller.dfs.listObjects)


    router.get('/dfs/getPresinedUrl', controller.dfs.getPresinedUrl)
    









};
